
#ifndef minigame_hpp
#define minigame_hpp

#include "main.hpp"
#include <vector>
#include <allegro.h>


class cMiniGame
{
private:

    BITMAP * minigamemenu;
    BITMAP * drawnumberbitmap;
    BITMAP * card0;
    BITMAP * card1;
    BITMAP * card2;
    BITMAP * card3;
    BITMAP * card4;
    BITMAP * card5;
    BITMAP * card6;
    BITMAP * card7;
    BITMAP * card8;
    BITMAP * card9;
    BITMAP * effect1; //wybuch

    std::string tmp; //pomocniczy string tmp dla konwersji itoa
    bool playerturn;
    sPoint * cornerminigame;

    int isexit;
    int playerpoints;
    int computerpoints;
    int drawnumber;//wylosowany numer, nie mylic z numerem rundy!
    int roundnumber;
    int lastclikedpos[2];

    void summary();
    void draw(int &who);
    void preparegame();
    void animation(BITMAP * bitmap,BITMAP * bufor,  int X , int Y , int count_cages ,int weight_cages , int time ,bool copybufor);


public:
    cMiniGame(int weight,int height);
    void drawgame(BITMAP *bufor,int bid);

};




















#endif
